JIRA 版本:7.3.8
JKD 版本:1.8
MySQL 版本:5.6
JIRA 需要依赖 JDK 和 外部数据库,本文使用 JDK 8 和 MySQL 5.6。
关于这两个的安装方法可参考其他文章,本文具体不详述。
CentOS 6.5 64bit 安装 JDK 7
CentOS 6.5 64bit 安装 MySQL 5.6
MySQL 中创建 JIRA DB
1 | CREATE DATABASE jiradb CHARACTER SET utf8 COLLATE utf8_bin; |
1 | GRANT SELECT,INSERT,UPDATE,DELETE,CREATE,DROP,ALTER,INDEX on jiradb.* to 'mysql'@'%' identified by '123456'; |
安装 JIRA
以 root 用户执行安装。
使安装程序可执行:1
[root@localhost ~]# chmod a+x atlassian-jira-software-7.3.8-x64.bin
运行安装程序:1
2
3
4
5
6
7
8[root@localhost ~]# ./atlassian-jira-software-7.3.8-x64.bin
Unpacking JRE ...
Starting Installer ...
Jan 01, 2018 7:35:35 AM java.util.prefs.FileSystemPreferences$1 run
INFO: Created user preferences directory.
This will install JIRA Software 7.3.8 on your computer.
OK [o, Enter], Cancel [c]
依据步骤提示选择:
首先,选择安装类型:1
2
3Choose the appropriate installation or upgrade option.
Please choose one of the following:
Express Install (use default settings) [1], Custom Install (recommended for advanced users) [2, Enter], Upgrade an existing JIRA installation [3]
这里选择 2。
其次,选择安装目录:1
2Where should JIRA Software be installed?
[//atlassian/jira]
这里选择默认安装目录。
第三,选择数据目录:1
2Default location for JIRA Software data
[/var/atlassian/application-data/jira]
这里选择默认数据目录。
第四步,选择 TCP 端口:1
2
3
4
5Configure which ports JIRA Software will use.
JIRA requires two TCP ports that are not being used by any other
applications on this machine. The HTTP port is where you will access JIRA
through your browser. The Control port is used to startup and shutdown JIRA.
Use default ports (HTTP: 8080, Control: 8005) - Recommended [1, Enter], Set custom value for HTTP and Control ports [2]
这里选择默认的端口。
第五步,安装服务:1
2
3
4
5JIRA can be run in the background.
You may choose to run JIRA as a service, which means it will start
automatically whenever the computer restarts.
Install JIRA as Service?
Yes [y, Enter], No [n]
1 | Please wait a few moments while JIRA Software is configured. |
特别注意:防火墙需要开启 8080 和 8005 端口
拷贝 MySQL JDBC 驱动程序
将 mysql-connector-java-5.1.27-bin.jar 驱动程序拷贝到 JIRA 的 lib 目录下:1
[root@localhost ~]
重启 JIRA 服务:1
[root@localhost ~]
JIRA bin 目录下又启用和停用的脚本
设置 JIRA
而且 JIRA 默认支持中文,可以通过 Language 中进行选择
选择 我将设置它自己:
数据库设置:
设置应用程序属性:
输入 License:
生成使用 License :
设置管理员账户:
设置电子邮件通知:
JIRA 破解
将破解文件 atlassian-extras-3.2.jar 替换 /opt/atlassian/jira/atlassian-jira/WEB-INF/lib 原 atlassian-extras-3.2.jar